{{! -------------------------------------------------------------------------- }}
{{! Copyright 2002-2023, OpenNebula Project, OpenNebula Systems                }}
{{!                                                                            }}
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may    }}
{{! not use this file except in compliance with the License. You may obtain    }}
{{! a copy of the License at                                                   }}
{{!                                                                            }}
{{! http://www.apache.org/licenses/LICENSE-2.0                                 }}
{{!                                                                            }}
{{! Unless required by applicable law or agreed to in writing, software        }}
{{! distributed under the License is distributed on an "AS IS" BASIS,          }}
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   }}
{{! See the License for the specific language governing permissions and        }}
{{! limitations under the License.                                             }}
{{! -------------------------------------------------------------------------- }}

<style>
	.title_label{
		font-weight: bold;
		color:#555;
	}
</style>

<table id="sched_{{res}}_actions_table" class="info_table dataTable">
  <thead>
      <tr>
        <th> {{tr "ID"}}</th>
        <th> {{tr "Action"}} </th>
        <th> {{tr "Time"}} </th>
        <th> {{tr "Rep"}} </th>
        <th> {{tr "Ends"}} </th>
        <th> {{tr "Done" }} </th>
        {{#if isVM}} <th> {{tr "Message" }} </th> {{/if}}
        <th colspan=""> </th>
        {{#if canAdd}}
          <th>
            <button id="add_sched_{{res}}_action" class="button small success right radius"> {{tr "Add action"}} </button>
          </th>
        {{/if}}
        {{#if leases}}
          <th>
            <button id="leases_btn" class="small button leases right radius" type="button"><i class="fa fa-clock"></i></button>
          </th>
        {{/if}}
      </tr>
  </thead>
	<tbody id="sched_{{res}}_actions_body" class="sched_place">
    {{#if body}} {{{body}}} {{/if}}
  </tbody>
</table>